


import { getRequest, postRequest } from '@/lib/axios';
import { CHAINGAMELIST, CHAINGAMEADD,CHAINGAMEINFO,CHAINGAMEUPDATE,CHAINGAMEDEL,GAMEHIDE } from '@/config/api-constant/moby'

// 游戏列表
export const gameListApi = (param) => {
    return getRequest(CHAINGAMELIST, param)
}

// 添加游戏
export const gameAddApi = (param) => {
    return postRequest(CHAINGAMEADD, param)
}

// 游戏详情
export const gameInfoApi = (param) => {
    return getRequest(CHAINGAMEINFO, param)
}

//游戏更新
export const gameUpdateApi = (param) => {
    return postRequest(CHAINGAMEUPDATE, param)
}

// 删除游戏
export const gameDelApi = (param) => {
    return postRequest(CHAINGAMEDEL, param)
}

// 上、下架游戏
export const gameHideApi = (param) => {
    return postRequest(GAMEHIDE, param)
}
